package Person.ith_01;
 class Student {
    private String name;
    private int age;

    /* public void setName(String n)
     {
         name = n;
     }*/
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
 /* public void setAge(int a)
   {
       age = a;
   }*/

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void read() {
        System.out.println(name + "   " + age);
    }
}
public class StudentDemo {
    public static void main(String[] args) {
        Student s = new Student();
        s.setName("户");
        s.setAge(30);
        s.read();
       /* System.out.println(s.getAge());*/
    }
}

